package com.bw.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bw.common.utils.PageUtils;
import com.bw.common.utils.Query;

import com.bw.house.dao.HouseAddrDao;
import com.bw.house.entity.HouseAddrEntity;
import com.bw.house.service.HouseAddrService;


@Service("houseAddrService")
public class HouseAddrServiceImpl extends ServiceImpl<HouseAddrDao, HouseAddrEntity> implements HouseAddrService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HouseAddrEntity> page = this.page(
                new Query<HouseAddrEntity>().getPage(params),
                new QueryWrapper<HouseAddrEntity>()
        );

        return new PageUtils(page);
    }

}